.pg3-layout {
  min-height: 100vh;
  background: #f0f2f5;
}

.pg3-sider {
  background: #fff;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pg3-container {
  background: #f0f2f5;
  min-height: 100vh;
  padding: 24px;
}

.pg3-process {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 4px;
  height: 100%;

  h3 {
    margin-bottom: 24px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.pg3-process-link {
  color: #1890ff;
  font-size: 14px;
  text-decoration: underline;
}

.pg3-process-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  .ant-avatar {
    background: #1890ff;
  }

  span {
    color: #666;
    font-size: 14px;
  }
}

.pg3-content {
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  min-height: 100%;

  h1 {
    margin-bottom: 24px;
    font-size: 20px;
    color: #333;
    font-weight: 500;
  }
}

.pg3-card {
  margin-bottom: 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

  h2 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
  }
}

.pg3-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pg3-upload {
  padding: 16px;
  background: #f5f5f5;
  border-radius: 4px;
  color: #999;
}

.pg3-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.pg3-notification-list {
  .pg3-notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;

    &:last-child {
      border-bottom: none;
    }
  }

  .pg3-notification-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
  }

  .pg3-notification-content {
    font-size: 14px;
    color: #333;
  }
}

// 禁用状态样式
.ant-input-disabled,
.ant-input-textarea-disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

// 表单样式
.ant-form-item-label {
  text-align: right;
  padding-right: 8px;
}

.ant-form-item-label > label {
  color: #666;
  font-size: 14px;
}

// 标签页样式
.ant-tabs-nav {
  margin-bottom: 16px;
}

.ant-tabs-tab {
  padding: 8px 16px;
  font-size: 14px;
}

.ant-tabs-tab-active {
  background: #fff;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* 审批对话框样式 */
.approval-dialog {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 对话框头部样式 */
.dialog-header {
  position: relative;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title {
  font-size: 16px;
  font-weight: bold;
}

.dialog-actions {
  display: flex;
  gap: 16px;
}

.dialog-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* 对话框内容区域样式 */
.dialog-content {
  display: flex;
  min-height: 500px;
}

/* 左侧工作流区域样式 */
.workflow-sidebar {
  width: 240px;
  padding: 24px;
  border-right: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.workflow-title {
  margin-bottom: 24px;
  font-weight: 500;
}

.workflow-steps {
  position: relative;
}

.step {
  position: relative;
  padding-bottom: 30px;
  padding-left: 20px;

  &:last-child {
    padding-bottom: 0;
  }

  &::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    height: calc(100% - 6px);
    border-left: 2px solid #e8e8e8;
  }

  &:last-child::before {
    display: none;
  }
}

.step-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #e8e8e8;
  z-index: 1;

  &.active {
    background-color: #52c41a;
  }
}

.step-content {
  margin-left: 16px;
}

.step-title {
  font-weight: 500;
  margin-bottom: 8px;
}

.step-info {
  color: #666;
  margin-bottom: 4px;
  font-size: 12px;
}

.user-tag {
  display: inline-block;
  padding: 0 4px;
  margin-right: 4px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  color: #666;
  font-size: 12px;
}

.result-tag {
  display: inline-block;
  color: #1890ff;
}

/* 右侧主内容区域样式 */
.main-content {
  flex: 1;
  padding: 24px;
}

/* 自定义标签页样式 */
.custom-tabs {
  :global {
    .ant-tabs-nav {
      margin-bottom: 24px;
    }
    .ant-tabs-tab {
      padding: 8px 0;
      font-size: 14px;
      margin-right: 24px;
    }
    .ant-tabs-tab-active {
      color: #1890ff;
      font-weight: 500;
    }
    .ant-tabs-ink-bar {
      height: 2px;
      background-color: #1890ff;
    }
  }
}

.tab-content {
  margin-bottom: 24px;
}

/* 底部区域样式 */
.footer {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid #f0f0f0;
  gap: 8px;
}

/* 处理人列表样式 */
.handler-list {
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
}

.handler-label {
  color: #666;
  margin-right: 8px;
}

.handler-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f56a00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 4px;
}

/* 重置Ant Design组件样式 */
:global {
  .ant-tabs-nav {
    margin-bottom: 16px;
  }
  
  .ant-tabs-tab {
    padding: 8px 16px;
    margin-right: 24px;
  }
  
  .ant-tabs-tab-active {
    color: #1890ff;
    font-weight: 500;
    
    &:after {
      content: "";
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background-color: #1890ff;
    }
  }
  
  .ant-form-item-label > label {
    color: #666;
  }
  
  .ant-input[disabled], 
  .ant-input-affix-wrapper-disabled,
  .ant-input-textarea-disabled textarea {
    background-color: #f5f5f5;
    color: #333;
  }
  
  .ant-btn-text {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
} 